package practice1_100;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

public class Practice342 {
    public boolean isPowerOfFour(int n) {
        if (n <= 0) return false;
        int x = n;
        while ( x >= 4 ) {
            if (x % 4 != 0) {
                return false;
            } else x = x / 4;
        }
        if(x==1) return true;
        return false;

    }

    public static void main(String[] args) {
        boolean a= new Practice342().isPowerOfFour(64);
        System.out.println(a);
        ArrayList<Integer> list=new ArrayList<>();
        List linkedList=new LinkedList();
//        linkedList

    }
}
